<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/vue.min.js"></script>
    <script src="../../js/iview.min.js"></script>
    <link rel="stylesheet" href="../../css/iview.css">
</head>
<body>
<div id="app">
    <child-component>
        <p>分发的内容</p>
        <p>更多分发的内容</p>
    </child-component>
</div>
<script>
    Vue.component('child-component', {
        template: "\
        <div>\
        <slot>\
        <p>如果父组件没有插入内容，我将作为默认出现</p>\
        </slot>"
    });
    var app = new Vue({
        el: "#app",
        data: {}
    })
</script>
</body>
</html>